package org.csmz.class2333;
class UserManager{
    static int userNum;
    public UserManager(){
        userNum ++;
    }
}
public class Example10 {
    public static void main(String[]args){
        UserManager userManager = new UserManager();
        UserManager userManager1 = new UserManager();
        UserManager userManager2 = new UserManager();
        System.out.println("目前已创建的用户数量为" + UserManager.userNum);
    }
}
